package com.tcs.gamed.server.model;

import java.io.Serializable;
import java.util.Date;

import org.slim3.datastore.Model;

import com.google.appengine.api.images.Image;
import com.tcs.gamed.server.model.FolderItem;
import com.tcs.gamed.shared.model.ItemType;

@Model(schemaVersion = 1)
public class ImageFile extends FolderItem implements Serializable {

    private static final long serialVersionUID = -2499342824710819103L;

    private String contentType;
    
    private Date creation;
    
    private String fileName;
    
    private String md5Hash;
    
    private long getFileSize;
    
    private Image.Format format;
    
    private int width;
    
    private int height;
    
    public ImageFile() {
        super();
        setType(ItemType.IMAGE);
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    public Date getCreation() {
        return creation;
    }

    public void setCreation(Date creation) {
        this.creation = creation;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getMd5Hash() {
        return md5Hash;
    }

    public void setMd5Hash(String md5Hash) {
        this.md5Hash = md5Hash;
    }

    public long getGetFileSize() {
        return getFileSize;
    }

    public void setGetFileSize(long getFileSize) {
        this.getFileSize = getFileSize;
    }

    public Image.Format getFormat() {
        return format;
    }

    public void setFormat(Image.Format format) {
        this.format = format;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

}
